package org.tong.validate.services;

import org.springframework.validation.annotation.Validated;
import org.tong.jpa.entities.Student;
import org.tong.validate.req.StudentReq;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author
 * @date 2022-08-11 17:32
 */
@Validated
public interface StudentService {
    public String find(@NotEmpty(message = "查询名字是什么") String name);

    public String find(@Valid @NotNull StudentReq studentReq);
}
